package com.sls.web.manager.game.service;

import com.sls.web.manager.game.pojo.JpayAreaInfo;
import com.sls.web.manager.game.pojo.JpayGoodsInfo;
import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;

public interface JpayService {

	/**
	 * 分页查询
	 * 
	 * @param goodsInfo
	 * @return
	 */
	public Pagination<JpayGoodsInfo> queryPage(JpayGoodsInfo goodsInfo,
			UserInfoVO userInfoVO);

	/**
	 * 保存产品信息
	 * 
	 * @param goodsInfo
	 * @param userInfoVO
	 */
	public void saveGoods(JpayGoodsInfo goodsInfo, UserInfoVO userInfoVO);

	/**
	 * 修改产品信息
	 * 
	 * @param goodsInfo
	 * @param userInfoVO
	 */
	public void updateGoods(JpayGoodsInfo goodsInfo, UserInfoVO userInfoVO);

	/**
	 * 单条查询
	 * 
	 * @param id
	 * @param userInfoVO
	 * @return
	 */
	public JpayGoodsInfo queryById(String id, UserInfoVO userInfoVO);

	/**
	 * 保存区域信息
	 * 
	 * @param areaInfo
	 * @param userInfoVO
	 */
	public void saveAreaInfo(JpayAreaInfo areaInfo, UserInfoVO userInfoVO);

	/**
	 * 区域分页查询
	 * 
	 * @param areaInfo
	 * @param userInfoVO
	 * @return
	 */
	public Pagination<JpayAreaInfo> queryAreaPage(JpayAreaInfo areaInfo,
			UserInfoVO userInfoVO);

	/**
	 * 确认审核
	 * 
	 * @param nutsNetId
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public boolean confirmAudit(String suppliersId, int priceRatio,
			UserInfoVO userInfoVO);

	/**
	 * 批量上架、下架
	 * 
	 * @param goodsState
	 * @param userInfoVO
	 */
	public void batchOnOffline(String goodsState, UserInfoVO userInfoVO);

	/**
	 * 订单查询
	 * 
	 * @param userId
	 * @param orderId
	 * @param userInfoVO
	 * @return
	 */
	public JpayGoodsInfo orderQuery(String userId, String orderId, String history,
			UserInfoVO userInfoVO);

	/**
	 * 余额查询
	 * 
	 * @param userId
	 * @param userInfoVO
	 * @return
	 */
	public JpayGoodsInfo balanceQuery(String userId, UserInfoVO userInfoVO);

	/**
	 * 区服同步
	 * 
	 * @param userInfoVO
	 */
	public void areaSync(String gameId, UserInfoVO userInfoVO);
}
